package com.yuwei.module_parking.model

import com.bw.lib_common.entity.AddParkingBody
import com.bw.lib_common.entity.ParkingEntity
import com.bw.lib_common.entity.Res
import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.yuwei.module_parking.api.ParkingApiService

class ParkingRepository : BaseRepository<ParkingApiService>() {
    override fun createApiServer(): ParkingApiService = OkHttpClientManager.retrofitInstance.create(ParkingApiService::class.java)
    suspend fun parkingManage(areaId:Int):Res<ParkingEntity> = apiService.parkingManage(areaId)

    suspend fun parking_delete(id:Int):Res<String> = apiService.parking_delete(id)
    suspend fun addParking_list(addParkingBody: AddParkingBody) = apiService.add_Parking_list(addParkingBody)

}